package com.javielinux.apptoqr;

import java.io.File;

import android.content.Context;
import android.widget.Toast;

public class Utils {

	static public String appDirectory = "/sdcard/app2qr/";
	
    static public void createAppDirectory() {
    	try {
    		File dir = new File(appDirectory);
    		if (!dir.exists()) dir.mkdir();
    	} catch (Exception ioe) {
    		ioe.printStackTrace();
    	}
    }
    
    static void showMessage(Context context, String msg) {
	    Toast.makeText(context, 
	    		msg, 
	            Toast.LENGTH_LONG).show();
    }
	
}
